package jiali.test.easyfactory_2;

public class CashRebate extends CashSuper{

    private double moneyRebate = 0d;
    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }


    @Override
    public double acceptCash(double price, int num) {
        return price * num * this.moneyRebate;
    }

}
